﻿@using LaxCraft.Repositories;
@{
    ViewBag.Title = "Stat Entry";
}
<h2>@ViewBag.Player.Name</h2>
@using (Html.BeginForm("StatEntry", "Team")) {
    <div class="statEntry">
        <div class="statTitle">@ViewBag.PlayerStat.Stat.Name</div>
        <div class="statXP">(@ViewBag.PlayerStat.XP XP)</div>
        <div class="clearFix"></div>                                                                                        
        <div class="statDescription">@ViewBag.PlayerStat.Stat.Description</div>
        <div class="statGuidance">@ViewBag.PlayerStat.Stat.Guidance</div>
        @if(!string.IsNullOrEmpty(ViewBag.PlayerStat.Stat.Link)){
        <div class="statLink"><a href="@ViewBag.PlayerStat.Stat.Link" target="_blank">link</a></div>    
        }
        
        @Html.Hidden("statId")
        @Html.Hidden("playerId")
        <div class="entryField">@Html.TextBox("XP")</div>
        <div class="entryLabel">@ViewBag.PlayerStat.Stat.Unit</div>
        <div class="clearFix"></div>                                                                                        
        <input type="submit" value="submit" />
    </div>
}
